import React from 'react';
import ReactDOM from 'react-dom';

import { ConfigProvider } from "antd";
import zhCN from 'antd/lib/locale/zh_CN';
import 'antd/dist/antd.css';

import './index.scss'

import Routes from './Routes'
import './utils/require'

import { HashRouter } from 'react-router-dom'
import { createHashHistory } from 'history';
import { Router } from 'react-router';
import CartItemCount from './components/context/cartItemCount';


const browserHistory = createHashHistory();

ReactDOM.render(
  <ConfigProvider locale={zhCN}>
    <Router history={browserHistory}>
      <HashRouter>
        <CartItemCount>
          <Routes></Routes>
        </CartItemCount>
      </HashRouter>
    </Router>
  </ConfigProvider>
  , document.getElementById('root')
);
